package com.xyhy.core.web.exception;

import com.xyhy.core.web.model.wrapper.IResultCode;

import lombok.Getter;

@Getter
public class CodeException extends RuntimeException {
	private static final long serialVersionUID = 1L;

	private int code;

	public CodeException(IResultCode resultCode) {
		super(resultCode.getMessage());
		this.code = resultCode.getCode();
	}

}
